package com.example.mytestdemo.scale.zoom.draw;


import java.util.Arrays;
import java.util.List;

public class DrawPrviewData {

    // 是否为橡皮模式
    private boolean r;

    // 点阵数组
    private Integer[][] p;

    //下面这两个属性是给服务器传过来的数据标注试卷ID和题目ID

    private String quizId;

    private long questionId;

    private boolean isClear;

    private int color;

    public void setColor(int color) {
        this.color = color;
    }

    public int getColor() {
        return color;
    }


    private String a() {
        StringBuilder a = new StringBuilder();
        List<Integer[]> list = Arrays.asList(p);
        for (Integer[] integer : list) {
            a.append(integer[0]);
        }
        return a.toString();
    }

    @Override
    public String toString() {
        return "DrawPrviewData{" +
                "r=" + r +
                ", p=" + a() +
                ", quizId='" + quizId + '\'' +
                ", questionId=" + questionId +
                ", isClear=" + isClear +
                ", color=" + color +
                '}';
    }

    public void setIsClear(boolean isClear) {
        this.isClear = isClear;
    }

    public boolean isClear() {
        return this.isClear;
    }

    public boolean isR() {
        return r;
    }

    public void setR(boolean r) {
        this.r = r;
    }

    public Integer[][] getP() {
        return p;
    }

    public void setP(Integer[][] p) {
        this.p = p;
    }

    public void setQuizId(String quizId) {
        this.quizId = quizId;
    }

    public String getQuizId() {
        return this.quizId;
    }

    public void setQuestionId(long questionId) {
        this.questionId = questionId;
    }

    public long getQuestionId() {
        return this.questionId;
    }

}
